﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Channel
    {
        private int channelNumber;
        private string channelName;


        public Channel(int number, string name)
        {
            channelName = name;
            if (channelNumber<0)
                throw new ArgumentException();
            channelNumber = number;
        }


        public int ChannelNumber
        {
            get { return channelNumber; }
        }

        public string ChannelName
        {
            get { return channelName; }
        }

        public void PrintChannelInfo()
        {
            Console.WriteLine("{0} {1}", channelNumber, channelName);
        }
    }
}
